\documentclass{article}
% Test undefined environs
\def\foo{Foo}
\begin{document}
before
\begin{foo}
inside
\end{foo}
after
\end{document}
